package com.itsitio.registeradmin.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "empresas_razones")
public class CompanyFirmName {
//public class CompanyType extends MappedEntity{

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "idx")
	private Integer id;

	//taxId
	@Column(name = "cuit", length = 50)
	private String taxId;

	//razon social
	@Column(name = "razon", length = 250)
	private String firmName;
	
	//
	//TODO agregar aqui el campo Agregado Por
	//
	
	//Fecha
	@Column(name = "fecha")
	private Date updateDate;
	
	@ManyToOne
	@JoinColumn(name="idxempresa")
	private Company company;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTaxId() {
		return taxId;
	}

	public void setTaxId(String taxId) {
		this.taxId = taxId;
	}

	public String getFirmName() {
		return firmName;
	}

	public void setFirmName(String firmName) {
		this.firmName = firmName;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	
}
